const mongoose = require('mongoose');
const { getMeta, preSave } = require('../helpers');

/** 定义 GoodClassify Schema */
const GoodClassifySchema = new mongoose.Schema({
  /** 分类名称 */
  title: String,
  meta: getMeta(),
});

GoodClassifySchema.pre('save', preSave);

/** 注册 User shecma */
mongoose.model('GoodClassify', GoodClassifySchema);
